import React from 'react'
import { HashRouter as Router, Link } from 'react-router-dom'
// import { BrowserRouter as Router } from "react-router-dom"
// import routes from "./router"
import CompileRouter from "./utils/compileRouter"
import routes from "./router/index.js"
console.log(routes)
class App extends React.Component {
    render() {
        return (
            <Router>
                <Link to="/friends">朋友</Link>
                |
                <Link to="/discover">发现</Link>
                |
                <Link to="/mine">我的</Link>
                <CompileRouter routes={routes} />
            </Router>
        )
    }
}

export default App
